package J1_7;

import java.util.Scanner;

public class J107task2 {
    public static void main(String[] args) {
        int a[]=new int[10];
        int max=0;
        Scanner scanner=new Scanner(System.in);
        for (int i=0;i<a.length;i++){
            System.out.printf("请输入第"+(i+1)+"娃娃的大小:");
            a[i]= scanner.nextInt();
        }
        max=a[0];
        for (int i=1;i<a.length;i++){
            if (max<a[i]){
                max=a[i];
            }
        }
        System.out.println("娃娃里面的最大值为:"+max);
    }

}
